home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / app / appassign30.lha / AppAssign30 / Install_English < prev    next >
Text File  |  1995-09-12  |  6KB  |  303 lines

  1. ;
  2. ; $VER: Installation de AppAssign v3.0 (12.9.1995)
  3. ;
  4. ;
  5. ;
  6.  
  7.         (set UserLevel.old @user-level)
  8.  
  9. ; Initialisation des messages.
  10.  
  11.         (set Language 16)
  12.  
  13.         (set #WrongKickStart "\nAppAssign need OS2.04+")
  14.  
  15.  
  16.  
  17. ; S'assurer que l'on utilise un KickStart >= α 2.04.
  18.  
  19.         (if (< (/ (getversion) 65536) 37)
  20.           (abort #WrongKickStart)
  21.         )
  22.  
  23.  
  24. (set LangueHelp "Select which language you want the documentation in.")
  25.  
  26. (set IconHelp "What kind of icons do you want:\n\n- 4 colors:          Standards icons\n- 8 colors MagicWB : Standard MagicWB\n- NewIcon :          Standard NewIcon")
  27.  
  28. (set bguiHelp "The bgui.library makes it easier to create a nice GUI.\n\nbgui.library   (C) 1993-1995 Jan van den Baard")
  29.  
  30. (set Refresh  "Choose refresh mode of window")
  31. (set Aspect   "Choose size of borders:\n\n- AutoAspect:  Keep the screen-aspect-ratio\n- Thin:        Force thin mode\n- Standard:    Like the system")
  32. (set Frame    "Choose buttons look")
  33. (set WindowPos  "Where windows should open its GUI ?")
  34. (set NewLook    "NewLook mode will create a white listview scroller")
  35.  
  36.  
  37. ;
  38. ; RΘpertoire de destination
  39. ; *************************
  40. ;
  41.  
  42. (set Path.source (pathonly @icon) )
  43.  
  44. (set  Path.dest
  45.         (askdir
  46.                 (prompt "\nSelect or create a directory to install AppAssign in.\n")
  47.                 (help @askdir-help)
  48.                 (default "Sys:Tools/Commodities")
  49.         )
  50. )
  51.  
  52.  
  53. ; Copie de l'executable
  54. ; **********************
  55. (copyfiles
  56.         (prompt "Copy of AppAssign")
  57.         (help @copyfiles-help)
  58.         (source Path.source)
  59.         (dest Path.dest)
  60.         (choices "AppAssign" "AppAssign.info")
  61. )
  62.  
  63.  
  64.  
  65. ; Copie de la documentation
  66. ; *************************
  67. (set Doc (askchoice
  68.             (prompt "Documentation of AppAssign")
  69.             (choices "French" "English" )
  70.             (help LangueHelp)
  71.             (default 1)
  72.  
  73.     )
  74. )
  75.  
  76.  
  77.     (if (= Doc 0)
  78.         (copyfiles
  79.             (source "AppAssign_FR.guide")
  80.             (dest Path.dest)
  81.             (newname "AppAssign.guide")
  82.             (infos)
  83.         )
  84.     )
  85.  
  86.     (if (= Doc 1)
  87.         (copyfiles
  88.             (source "AppAssign_ENG.guide")
  89.             (dest Path.dest)
  90.             (newname "AppAssign.guide")
  91.             (infos)
  92.         )
  93.     )
  94.  
  95.  
  96.  
  97.  
  98. ; On copie les ic⌠nes
  99. ; *******************
  100. (set Icon (askchoice
  101.             (prompt "What sort of icons do you want ?")
  102.             (choices "4 couleurs" "MagicWB" "NewIcon")
  103.             (help IconHelp)
  104.     )
  105. )
  106.  
  107.     ; MagicWB ?
  108.     ; *********
  109.     (if (= Icon 1)
  110.         (
  111.         (copyfiles
  112.             (source "Icons/EXE_MagicWb.info")
  113.             (dest Path.dest)
  114.             (newname "AppAssign.info")
  115.         )
  116.  
  117.         (copyfiles
  118.             (source "Icons/Guide_MagicWb.info")
  119.             (dest Path.dest)
  120.             (newname "AppAssign.guide.info")
  121.         )
  122.         )
  123.     )
  124.  
  125.     ; NewIcon ?
  126.     ; *********
  127.     (if (= Icon 2)
  128.         (
  129.         (copyfiles
  130.             (source "Icons/EXE_NewIcon.info")
  131.             (dest Path.dest)
  132.             (newname "AppAssign.info")
  133.         )
  134.  
  135.         (copyfiles
  136.             (source "Icons/Guide_NewIcon.info")
  137.             (dest Path.dest)
  138.             (newname "AppAssign.guide.info")
  139.         )
  140.         )
  141.     )
  142.  
  143.  
  144. ; Copie de la bgui.library
  145. ; ************************
  146. (copylib
  147.     (prompt "Copy of the bgui.library")
  148.     (source "libs/bgui.library")
  149.     (dest "Libs:")
  150.     (help bguiHelp)
  151.     (confirm)
  152. )
  153.  
  154.  
  155.  
  156.  
  157. ; Parametrage du programme
  158. ; ************************
  159.  
  160. ; On prend le chemin de destination et le nom
  161. (set DestName (tackon Path.dest "AppAssign"))
  162.  
  163.  
  164. ; ***********
  165. ; * REFRESH *
  166. ; ***********
  167. (set Icon (askchoice
  168.             (prompt "What kind of refresh do you want ?")
  169.             (choices "SmartRefresh" "SimpleRefresh")
  170.             (help Refresh)
  171.     )
  172. )
  173.  
  174.     (if (= Icon 0)
  175.         (tooltype
  176.             (settooltype "SMARTREFRESH" "YES")
  177.             (dest DestName)
  178.         )
  179.     )
  180.  
  181.     (if (= Icon 1)
  182.         (tooltype
  183.             (settooltype "SMARTREFRESH" "NO" )
  184.             (dest DestName)
  185.         )
  186.     )
  187.  
  188. ; **********
  189. ; * ASPECT *
  190. ; **********
  191. (Set Icon (askchoice
  192.             (prompt "What aspect do you want for the GUI ?")
  193.             (choices "Automatic (following screen-ratio)" "Thin" "Standard")
  194.             (help Aspect)
  195.         )
  196. )
  197.     (if (= Icon 0)
  198.         (tooltype
  199.             (settooltype "ASPECT" "AUTO")
  200.             (dest DestName)
  201.         )
  202.     )
  203.  
  204.     (if (= Icon 1)
  205.         (tooltype
  206.             (settooltype "ASPECT" "THIN")
  207.             (dest DestName)
  208.         )
  209.     )
  210.  
  211.     (if (= Icon 2)
  212.         (tooltype
  213.             (settooltype "ASPECT" "STANDARD")
  214.             (dest DestName)
  215.         )
  216.     )
  217.  
  218. ; *********
  219. ; * FRAME *
  220. ; *********
  221. (Set Icon (askchoice
  222.             (prompt "What kind of frame do you want ?")
  223.             (choices "Standard" "XEN")
  224.             (help Frame)
  225.         )
  226. )
  227.     (if (= Icon 0)
  228.         (tooltype
  229.             (settooltype "FRAME" "STANDARD")
  230.             (dest DestName)
  231.         )
  232.     )
  233.  
  234.     (if (= Icon 1)
  235.         (tooltype
  236.             (settooltype "FRAME" "XEN")
  237.             (dest DestName)
  238.         )
  239.     )
  240.  
  241.  
  242. ; *******************
  243. ; * NEWLOOKSCROLLER *
  244. ; *******************
  245. (Set Icon (askchoice
  246.             (prompt "Do you want the NewLook mode for Listview scroller ?")
  247.             (choices "Yes" "No")
  248.             (default 1)
  249.             (help NewLook)
  250.         )
  251. )
  252.     (if (= Icon 0)
  253.         (tooltype
  254.             (settooltype "NEWLOOKSCROLLER" "YES")
  255.             (dest DestName)
  256.         )
  257.     )
  258.  
  259.     (if (= Icon 1)
  260.         (tooltype
  261.             (settooltype "NEWLOOKSCROLLER" "NO")
  262.             (dest DestName)
  263.         )
  264.     )
  265.  
  266.  
  267. ; ******************
  268. ; * WINDOWPOSITION *
  269. ; ******************
  270. (Set Icon (askchoice
  271.             (prompt "Where do you want the program open its GUI ?")
  272.             (choices "Center of screen" "On the mouse" "On the top-left")
  273.             (help WindowPos)
  274.         )
  275. )
  276.     (if (= Icon 0)
  277.         (tooltype
  278.             (settooltype "WINDOWPOSITION" "CENTERSCREEN")
  279.             (dest DestName)
  280.         )
  281.     )
  282.  
  283.     (if (= Icon 1)
  284.         (tooltype
  285.             (settooltype "WINDOWPOSITION" "CENTERMOUSE")
  286.             (dest DestName)
  287.         )
  288.     )
  289.  
  290.     (if (= Icon 2)
  291.         (tooltype
  292.             (settooltype "WINDOWPOSITION" "TOPLEFT")
  293.             (dest DestName)
  294.         )
  295.     )
  296.  
  297. (message "\nPlease read documentation for other options")
  298.  
  299.  
  300. (set @default-dest Path.dest )
  301.         (exit)
  302.  
  303.